﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement.Records;

namespace Orchard.Commerce.Models
{
    public class ProductRecord : ContentPartRecord
    {
        public int Id
        {
            get; set;
        }

        [Required]
        public string Description
        {
            get; set;
        }

        [Required]
        public string SKU
        {
            get; set;
        }

        [Required]
        public short DisplayOrder
        {
            get; set;
        }

        public string ImageName
        {
            get; set;
        }

        public virtual IList<ProductsCategoriesRecord> ProductsCategories { get; set; }

        public ProductRecord()
        {
            ProductsCategories = new List<ProductsCategoriesRecord>();
        }

    }
}